package com.dkd.manage.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dkd.manage.mapper.ZichanTypeMapper;
import com.dkd.manage.domain.ZichanType;
import com.dkd.manage.service.IZichanTypeService;

/**
 * 资产类型管理Service业务层处理
 * 
 * @author zqy
 * @date 2024-12-25
 */
@Service
public class ZichanTypeServiceImpl implements IZichanTypeService 
{
    @Autowired
    private ZichanTypeMapper zichanTypeMapper;

    /**
     * 查询资产类型管理
     * 
     * @param id 资产类型管理主键
     * @return 资产类型管理
     */
    @Override
    public ZichanType selectZichanTypeById(Long id)
    {
        return zichanTypeMapper.selectZichanTypeById(id);
    }

    /**
     * 查询资产类型管理列表
     * 
     * @param zichanType 资产类型管理
     * @return 资产类型管理
     */
    @Override
    public List<ZichanType> selectZichanTypeList(ZichanType zichanType)
    {
        return zichanTypeMapper.selectZichanTypeList(zichanType);
    }

    /**
     * 新增资产类型管理
     * 
     * @param zichanType 资产类型管理
     * @return 结果
     */
    @Override
    public int insertZichanType(ZichanType zichanType)
    {
        return zichanTypeMapper.insertZichanType(zichanType);
    }

    /**
     * 修改资产类型管理
     * 
     * @param zichanType 资产类型管理
     * @return 结果
     */
    @Override
    public int updateZichanType(ZichanType zichanType)
    {
        return zichanTypeMapper.updateZichanType(zichanType);
    }

    /**
     * 批量删除资产类型管理
     * 
     * @param ids 需要删除的资产类型管理主键
     * @return 结果
     */
    @Override
    public int deleteZichanTypeByIds(Long[] ids)
    {
        return zichanTypeMapper.deleteZichanTypeByIds(ids);
    }

    /**
     * 删除资产类型管理信息
     * 
     * @param id 资产类型管理主键
     * @return 结果
     */
    @Override
    public int deleteZichanTypeById(Long id)
    {
        return zichanTypeMapper.deleteZichanTypeById(id);
    }
}
